package demo2;

public class Dog extends Animal implements ISWIM,IRUN{


    Dog(String name) {
        super(name);
    }
    @Override
    public void eat() {
        System.out.println(this.name+"正在吃肉...");
    }

    @Override
    public void run() {
        System.out.println(this.name+"正在用4条腿跑......");
    }

    @Override
    public void swim() {
        System.out.println(this.name+"正在用4条腿游泳......");

    }
}
